package com.dr.web.controllers;

import java.util.Map;


import com.dr.service.WeChatUtilService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;


@Controller
@RequestMapping("/wechat")
public class WeChatController {
	
	@Autowired
	WeChatUtilService weChatUtilService;

	@RequestMapping(value="/sdkInit",method=RequestMethod.POST)
	@ResponseBody
	public Map<String, String> jsSdkConfig(String url){
		Map<String, String> map = weChatUtilService.JsSDKInit(url);
		return map;
	}
}
